package com.zzyl.nursing.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "DevicePropertyStatusRequestVo", description = "设备属性状态请求VO")
public class propertyStatusInfo {

    @ApiModelProperty(value = "数据类型")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @JsonSerialize(using = ToStringSerializer.class)
    private String dataType;

    @ApiModelProperty(value = "标识符")
    private String identifier;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "时间")
    private String time;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "值")
    private String value;

    /* {
        "code":200,
        "msg":"操作成功",
        "data":{
            "list":{
                "propertyStatusInfo":[
                    {
                        "dataType":"int",
                        "identifier":"HeartRate",
                        "name":"心率",
                        "time":"1697096335545",
                        "unit":"",
                        "value":"87"
                    },
                    {
                        "dataType":"float",
                        "identifier":"BodyTemp",
                        "name":"体温",
                        "time":"1697096335545",
                        "unit":"℃",
                        "value":"39.0"
                    },
                    {
                        "dataType":"int",
                        "identifier":"xueyang",
                        "name":"血氧",
                        "time":"1697096335545",
                        "value":"106"
                    },
                    {
                        "dataType":"double",
                        "identifier":"BatteryPercentage",
                        "name":"电池电量百分比",
                        "time":"1697096335545",
                        "unit":"%",
                        "value":"-22.0"
                    },
                    {
                        "dataType":"int",
                        "identifier":"xueya",
                        "name":"血压"
                    }
                ]
            }
        }
    } */

}
